package com.example.demo.util.craw;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.jsoup.nodes.Document;

import java.util.List;
import java.util.Map;

/**
 * Description: 爬取的结果<br/>
 *
 * @author LLL<br   />;
 * @taskId <br/>
 * @Date 2019/5/23 11:26
 * @Version 1.0
 */
@Setter
@Getter
@ToString
public class CrawlResult {

    /**
     * 爬取的网址
     */
    private String url;

    /**
     * 网页的Document数据
     */
    private Document htmlDoc;

    /**
     * key为选择规则，value为根据规则匹配的结果
     */
    private Map<String, List<String>> result;

}
